package com.example.exceptions;

import com.example.result.MSG;

/**
 * 自定义异常
 * @Author: chen
 * @CreateTime: 2022-08-16
 * @Version: 1.0
 */
public class ParamsException extends RuntimeException{

    private MSG responseEnum;

    private Object data;

    public ParamsException(MSG responseEnum,Object data) {
        this.responseEnum = responseEnum;
        this.data = data;
    }

    public MSG getResponseEnum() {
        return responseEnum;
    }

    public Object getData() {
        return data;
    }
}
